Question 7 code
Question 8,9,10