public void createQuiz(User user){		
		// set user to user controller
		this.userC.setUser(user);
		// initialise quiz model
		QuizModel quizM = new QuizModel();
		// initialise quiz game model
		QuizGameModel qgameM = new QuizGameModel();
		boolean duplacateName = true;
		// while quiz name is not unique
		while(duplacateName){
			// Initialise user input manager
			UserInputManager inpM = new UserInputManager("USER_PATTERN");
			// set quiz name 
			inpM.setMessage("Please type the name of your quiz: ");
			this.qgameC.quiz.setName(inpM.askString());
			this.qgameC.quiz.setOwner(user.getId());
			this.qgameC.quiz.setStatus(0);
			// check name in database
			duplacateName = quizM.quizExistOnSystem(this.qgameC.quiz.getName());
			if(duplacateName){
				System.out.println("There is an duplicate, please try different");
			}
		}
		
		UserInputManager inpM = new UserInputManager("QUESTION_PATTERN");
		inpM.setMessage("- Would you like to add question ?(type no to stop adding questions) - ");
		inpM.setOption("yes");
		inpM.setOption("no");
		
		boolean addquiz = true;
		
		while(inpM.askAction().equals("yes")){
			
			QuizGame qGame = new QuizGame();
			UserInputManager inpQ = new UserInputManager("QUESTION_PATTERN");
			
			inpQ.setMessage("Please type the question: ");
			qGame.question.setQuestionText(inpQ.askString());
			
			int ans = 1;
			// there should be minimum 4 answers 
			while(ans < 5){
				// show message
				inpQ.setMessage("Please type the answer ("+ans+" out of 4): ");
				// set answer
				Answer answer = new Answer();
				answer.setText(inpQ.askString());
				// add answers to list
				qGame.answers.add(answer);
			
				ans++;
			}
			
			boolean check = false;
			int correct = 0;
			
			while(!check){
				inpQ.setMessage("Please type correct answer: ");
				correct = inpQ.askForInt();
				// if number is 1-4
				if((correct>0)&&(correct<5)){
					check = true;
				}else{
					System.out.println("Answer can be 1-4");
					check = false;
				}
			}
			// tell to class that it will be used
			Global.dataBase.getInstance().useDb();
			// for first quiz
			if(addquiz){
				// create new quiz, and get id
				this.qgameC.quiz.setId(quizM.createQuiz(this.qgameC.quiz).getId());
			}
			// set question quiz id
			qGame.question.setQuizId(this.qgameC.quiz.getId());
			// quiz was inserted
			boolean status = qgameM.insertQuizGame(qGame, correct);
			// not use db
			Global.dataBase.getInstance().notUseDb();
			// close connection
			Global.dataBase.getInstance().closeConnection();
			if(status){
				System.out.println("Question was added!");
				addquiz = false;
			}else{
				System.out.println("There was an error adding your qustion");
				addquiz = false;
			}
			
		}
	}