Refactored code into multiple new methods and added an instance variable that can be used throughout the program