Techniques to Shape Your Children’s Behavior

My son is going to be eight. He misbehaves with me sometimes and says bad words. How can I shape his behavior?