Solve exercise 1.26