Added all code from part-1-instructions.pdf