added class to handle logging