Moved code into my displayResults method