Why are updateOrientation and updatePosition public? What is their purpose? Please add a comment.