encodeQuizData complete
modified encodePosts t oget by crn