Training, Not Luck, Gets Good Manners

Have you ever passed someone walking his/her dog on the street or in a store or park whose dog walked perfectly on a loose leash and sat to greet people… and wondered how that person got so lucky to have a dog like that?