added buzzer pin and started work on output function