added event to Alarm class