Completion of Programming Assignment 2