added first revision of the alarm clock code