That Hanuman holds a weapon in his hand establishes him as a warrior (Kshatriya). That he holds Ram’s flag establishes him as a servant (dasa, Shudra). That he has the sacred thread across his chest establishes him as a Brahmin, one who has accessed the Vedas. Thus the highest and the lowest stations of Vedic society (varna) are accommodated in Hanuman, a creature of the forest.