class GardenMaker { 
  private static boolean made = false; 
  private static int counter = 0;
  private Garden gd;
  private GardenMaker() { counter=0; } 
  
  static public GardenMaker Instance() {
    if (!made) {
      made = true;
      return new GardenMaker(); //private constructor, only callable within
      }
    else
      return null; //return no further instances
  }

  public Garden getGarden(String gtype) {     
    return gd.getInstance(gtype);
  }
}

