public Element save(int index, float rf) throws Exception {
   Element e = new Element("GeneModel");
   e.setAttribute("Index", String.valueOf(index));
   e.setAttribute("Type", "TwoAlleleIncompleteDominance");
   e.setAttribute("RfToPrevious", String.valueOf(rf));
   e.addContent(t1.save(1));
   e.addContent(t2.save(2));
   e.addContent(t3.save(3));
   return e;
 }