ADD: logger class and implement loggin