problem 6 done
problem 7 done