Solution to problem 29 added