solved 8th problem