Committing Programming Assignment 2 functions with comments.