9.2 Explanation of Subroutines