Alarm class implemented.