creating a 3d cube