His ten heads were Kama (lust), Krodha (anger), Moha (delusion), Lobha (greed), Mada (pride), Maatsyasya (envy), Manas (mind), Buddhi (intellect), Chitta (will) and Ahamkara (the ego) -all these ten constitute the ten heads.
Ravana is of all the ten qualities. Such is the wisdom of Ravana, no wonder Ram asked Laxman to learn from him.
Ravana said, he had learnt these lessons through bitter experience. Greed arises from attachment to the senses and catering to them. Put them in their proper place; they are windows for knowledge, not channels of contamination.