problem 7. problem 8 almost done but not passing test