Completed the first part of this program to teach functions.