enabled is boolean. alarm is an object. What is the benefit of allocating an object here?