added a console log to run the program and print out the results.