New master cylinders come with a handy brake bleeding kit. Fill the reservoirs and slowly pump the pedal halfway. Watch for bubbles. When they stop, you've bled the master. Install the lines and don't spill DOT 3 or 4 brake fluid on your paint; it can cause damage.