Complete the implementation of the Alarm class.