changed problem_5 and 6