move cube to separate file