Problem 15: solution & test. Problem 27: solution.