Code for Part 1 Finished