solved problem8