refactor the most repeatable tasks into a class