A time alarm example with notifications