problem 5 done, beginning 6