solve problem#8