Solved homework Class 4 exercise 3