implement member function SubscribeToEvents