Printed results to the console, and created an alert to show user the results.