Adding toString(), hasCode() and equals() to the Alarm class