Completed Programming Assignment 1 for Class 2