Solving problem 15. Test 2.