Solving problem 5. Test 3.