Refactored print statements to be contained in their own methods