solved till 7th problem