These and other blocks of logic became methods of the JointState class.