solution to problem 11 added