created a log class to do all of the logging