added class for logging.