Teaching the way dogs learn