 Nagachandra , a scholar and the builder of the <unk> <unk> ( a Jain temple in honor of the 19th Jain tirthankar , <unk> , in <unk> , Karnataka ) , wrote <unk> ( 1105 ) , an account of the evolution of the soul of the Jain saint . According to some historians , King Veera Ballala I was his patron . Later , he wrote his magnum opus , a Jain version of the Hindu epic Ramayana called Ramachandra <unk> ( or Pampa Ramayana ) . Written in the traditional champu metre and in the <unk> <unk> tradition of <unk> , it is the earliest extant version of the epic in the Kannada language . The work contains 16 sections and <unk> significantly from the original epic by <unk> . Nagachandra represents King Ravana , the villain of the Hindu epic , as a tragic hero , who in a moment of weakness commits the sin of <unk> <unk> ( wife of the Hindu god Rama ) but is eventually purified by her devotion to Rama . In a further <unk> , Rama 's loyal brother <unk> ( instead of Rama ) kills Ravana in the final battle . Eventually , Rama takes <unk> @-@ <unk> ( converts to <unk> monk ) , becomes an ascetic and <unk> <unk> ( enlightenment ) . Considered a complementary work to the Pampa <unk> of <unk> Pampa ( <unk> , a Jain version of the epic Mahabharata ) , the work earned Nagachandra the honorific " <unk> Pampa " ( " new Pampa " ) . Only in the Kannada language do Jain versions exist of the Hindu epics , the Mahabharata and Ramayana , in addition to their <unk> version . 
