person A: My dog just learned how to ring the bell on the doorknob when he needs to go out
person B: Whoa that is really cool. Did you train him to do that?
person A: I put the bell on the door so it would ring when it opened and he got used to that_comma_ so now he associates the sound with having to go out. 
person B: That is amazing. Must be a very smart dog.