Code for the Hourly Beep application