Completed parts 1-4 of the assignment