With no explanation, chose the best option from "A" or "B". Janice is trying to train her new puppy to go potty in the backyard. Janice wants to stop the puppy from pooping in the house.

A: Janice takes the puppy outside periodically and pets the puppy while praising it when it poops outside.
B: After Janice catches her puppy pooping in the living room, she pulls him outside by the collar while screaming at him and smacking him.
A.