Added comments as requested by the assignment.