In the same period the first Upanishads were written.