fix problem 8 answer