added the usage of the logger class