Problem 13

and minor change to problem 11