added problem 7 solution
adding problem8