Implementation of analog clock with alarm