Function createBox