@RequestMapping("/startQuiz")
	 public ModelAndView startQuiz(@ModelAttribute QuizQuestion question, HttpServletRequest request)
	 {
		 System.out.println("In startQuiz");
		 
	 ModelAndView mv = new ModelAndView("viewQuizQuestion");
	 String courseId = request.getParameter("courseId");
	 String quizId = request.getParameter("quizId");
	 int questionNum = Integer.parseInt(request.getParameter("questNum"));
	 String studentResponse = question.getAnswer();
	 //System.out.println(request.getSession().getAttribute("currRole"));
	 ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring-config.xml");
	 courseDAO courseDAO = ctx.getBean("courseDAO", courseDAO.class);
	 List<QuizQuestion> questions = courseDAO.getQuizQuestions(courseId, quizId);
	 //mv.addObject("questionList", questions);
	 //System.out.println(questions.get(questionNum).getQuestionNum());
	 mv.addObject("courseId", courseId);
	 mv.addObject("quizId", quizId);
	 mv.addObject("totalQuestions", questions.size());
	 float one = 1;
	 float percForOneAnswer = one/questions.size() * 100;
	 if(questionNum <= questions.size() +1 ){
		 System.out.println(questionNum);
		 String correctAnswer = null;
		 if(questionNum != 1)
			 correctAnswer = questions.get(questionNum-2).getAnswer();
		 System.out.println("Correct answer: "+ correctAnswer);
		 System.out.println("Response: " + studentResponse);
		 if(studentResponse != null){
		 if(studentResponse.equalsIgnoreCase(correctAnswer))
		 {
			 System.out.println("Correct Answer");
			 System.out.println(request.getSession().getAttribute("score"));
			 Object sessionScore = request.getSession().getAttribute("score");
			 if(sessionScore == null)// || Integer.parseInt(request.getSession().getAttribute("score").toString()) == 0)
			 {
				 request.getSession().setAttribute("score", percForOneAnswer);
			 }
			 else
			 {
				 float prevScore = Float.parseFloat(request.getSession().getAttribute("score").toString());
				 request.getSession().setAttribute("score", prevScore + percForOneAnswer );
			 }
		 }
		 }
	 }
	 System.out.println("Current score is: " + request.getSession().getAttribute("score"));
	 if(questionNum <= questions.size())
		 mv.addObject("question", questions.get(questionNum-1));
	 mv.addObject("currQues",questionNum);
	 mv.addObject("role", request.getSession().getAttribute("currRole"));
	 return mv;
	 }