solved problem 226 B)