8.2 Explanation of Subroutines