Completing Part 3 of Assignment 1