Created MapToEvent class.