using an else statement rather than 2 different if statements to print to the console.