completed programming assignment 2 with an overload of comments