Dogs wag their tails to show they are friendly.