Here a gfci receptacle is added at the end of a row of duplex receptacles for single-location protection. The first outlet is connected to the source and 2-wire cable runs from box to box. All wires are spliced with a pigtail at the devices to pass current from one to the next. The load terminals on the gfci are not used and it does not protect the other receptacles in the circuit.
Here 3-wire cable is run from a double-pole circuit breaker and split to supply 120 volts to two sets of receptacles. The neutral wire from the circuit is shared by both. This wiring is commonly used in a 20amp kitchen circuit where two appliance feeds are needed, such as for a refrigerator and a microwave in the same location.
In these cases, it should be wrapped with electrical tape to mark it as hot. The ground wires will be green and/or bare copper. The ground should be spliced with a short piece of wire and connected to each device and outlet box that has a grounding terminal. In these drawing the brass colored terminal represent the hot side of the device and the silver colored terminal represent the neutral. Ground wires and terminals are in green.
Here the exhaust fan is controlled by a timer instead of a switch. There should be two hot wires and a ground coming out of the timer casing, splice one of these to the hot source. Spice the second to the black, cable wire running to the fan. Splice the source neutral to the white cable wire and the ground to the ground wires. At the fan splice the wires, matching the colors of each.