working on 6
Solution to 6
solved problem 7
solving problem 8