The schematic diagram is as follow:
**broken link removed**
where p1.0,1.1,1.2,1.3 and p3.0 are the output pins(Lets say PORTA of the MCU). While for the input, i plan to use a 5V connected to 4 inputs(Lets say PORTB),between them there are pushbuttons.
A high state, 1 on the input will turn on p1.0 and p3.0 when the pushbutton is pushed once. The second push will turn on p3.0 but p1.0 will be turned on. The same goes with 3 other inputs, each is designed to turn on p1.1,1.2 and 1.3.