implemented Notifier class for email notifications