Solutions to problems 10-18 inclusive