updated vector3 class