First crack at problem 13