hw10 Q5

could not finish Q6