Successfully completed part 2 of programming assignment 1