solved 6th problem