added some output signal as the tutor required