Create MGObj.java