setting up for problem 8