implemented a logger class