solution for problem set 2 7030571