Building of the personality according to Freud

Describe the Id, Ego, and Superego with examples. In what ways do these three ideas contribute to building of the personality according to Freud?