Implement Vector3 class