added print statements for debugging Problem 3 in Alarm.java