Refactored the definition of constructor Alarm::Alarm(Transducer) to use initialization list.