Below are some example circuits. You should study them in some detail.