Start implementing 3D code