Homework 4 Part 1 Implemented