Finalized code for Part 1