Added somo funcionality to the class Alarm