solve exercise 49.01