solution for problem set 7 839409