add final part of assig1 and fix formatting issue in part 1