7.6 Explanation of Subroutines (Scaling Routines)