Adding solution to Ex. 10.4-5