What are examples of sublimation in psychology?

Sublimation is a defense mechanism where emotional energy is transformed and applied to socially acceptable activity.

Examples could include:

An angry pianist will not hurt the person he is angry with, but will instead release his anger into playing the piano.

A person will not speak directly of his disappointment, but will use sarcasm in to express his disappointment.