public Essay getModel(int Question_ID) {
        Essay essayQuestion = new Essay();
        try {

            StringBuffer sql = new StringBuffer("");
            sql.append("SELECT QuestionID,QuestionType,noofwords, instructions");
            sql.append(" FROM `Essay`");
            sql.append(" where QuestionID=" + Question_ID);

            SQLHelper sQLHelper = new SQLHelper();
            sQLHelper.sqlConnect();
            ResultSet rs = sQLHelper.runQuery(sql.toString());
            while (rs.next()) {

                essayQuestion.setQtype_ID(rs.getInt("QuestionType"));
                essayQuestion.setQuestion_ID(rs.getInt("QuestionID"));
                essayQuestion.setNoofwords(rs.getInt("noofwords"));
                essayQuestion.setInstructions(rs.getString("instructions"));
               

            }
        } catch (SQLException ex) {
            Logger.getLogger(Essay.class.getName()).log(Level.SEVERE, null, ex);
        }
        return essayQuestion;
    }