problem 8 attempt