We never taught the dog this trick ??? He started doing this all on his own when he noticed that he could get a better view of the cats and squirrels that frequent some of the fences in the neighborhood