outlined ideas for problem 23