Added solution to problem 59.
Confirmed working.