Problem 13 added, temporary commented out unused code on problem 12