Ride in a straight line and 'take the lane' if necessary. Ride as far to the right of moving traffic as safely possible.  As with driving, scan ahead to avoid opening car doors, garbage cans, etc.  On some two lane roads, it may be necessary to 'take the lane.'  Make sure you look over your shoulder before merging and ride directly in the middle of the lane until it is safe to resume your position on the right side of the street.