All that you have to do is connect the like colored wires together with wire connectors. This gauge is when you want to use the quick connect method when wiring a light switch.

How To Wire Timers
How to connect wire to switch. Three 2 wire lines from a light which may be the power source. Connect the black wires to the switch terminals. Trim 12 inch of insulation from the ends of the black and white cables. The traveler wires dont need to be labeled because either traveler wire can connect to either traveler screw terminal on the switch. The new line is attached to a three way switch in the original box where there is a red and white wire to the switch and black to the white from the 2 wire line from the appropriate light source. This video shows you the process in detail for connecting 2 electrical wires together.
To wire the new switch connect the labeled common wire to the com terminal usually bronze or dark colored on the switch. The switch simply interrupts the current so it. There is the existing 3 wire cable to one switch. Pull the wires apart. Connect the source wire to the bottom terminal of the switch and the other black wire to the top terminal. It is very important to connect the ground wire to the switch as well.
Simply strip the wire to the length specified and push the wire into the hole. Connect each of the other two wires to one of the light colored traveler terminals. In this picture you can see the strip gauge on the back of the switch. The green screw on the 2 way switch is for the ground so all ground wires should be connected as seen below. The white wires are wire nutted together so they can continue the circuit. Now as for the ground wire.