adding code from webapp for level 4
adding part1 answers in