solved problem 16, started problem 17