solved problem7