solution to problem 28 added