starting quetion 4
Finsihed problem 4