Accepted solution to p112.