Here is a goal: How to curb your dog?

How would you accomplish this goal?

Possible answers: (A). After the dog defecates, wear the plastic bag like a glove. Pick the feces up and throw into a proper receptacle.. (B). Before the dog defecates, wear the plastic bag like a glove. Pick up the feces up and throw into a proper receptacle..
(A).