in his youth he received classic education and studied sanskrit the vedas and the upanishads