Meaning: The dog moved its tail from side to side, showing its joy and inviting the guests in.
Choice of Words: The verb "wagged" implies a back-and-forth movement, "its tail" specifies the part of the dog's body, "happily" describes the dog's emotional state, and "welcoming" suggests the dog's friendly intent towards the visitors.