added a class for logging purposes