EFL's photo above is spot on, just follow that. Just to explain the supply cable, the grey is the neutral, the brown is a permanent live (possibly via an isolator that is left on), the black is only live when the bathroom light is turned on. This then starts the fan and continues to run for a...