update index, rename quiz logic, add memory code to quiz logic