modified logger class and added an email class