Kinetic and potential energy are the types of energy that relate to: