Finished problem6, working on problem7