solution for problem set 6 6251984