PI.6.MAA.7: Use subroutines to reduce keystrokes and memory use