Completed Programming Assignment 2

Finished assignment including code annotation.