solution to problem 26 added