Skeleton for problem 9