Create a method to refactor