Solutions by Matthew Somerville.