Refactor code in problem3