Using methods to make my program easier to read