quiz logic added