solved fourth problem