update 3D code

added the 3D component of the lab