renamed cube to box
wrapped some stuff in App class