printed the results to the console, checked to make sure that the function is working correctly.