solved problem#8