code: public void addObject(DataObject newData) {
  
          if (newData.getNrOfDimensions() != nrOfDimensions) {
          	System.err.println("Inconsistent number of dimensions!"); //(this.nrOfDimensions, newData.getNrOfDimensions());
          } else {
          	this.dataList.add(newData);
          }
      }
docs: Adds a <code>DataObject</code> to the set.
  @param newData The <code>DataObject</code> to be added.
  @throws praktikum.framework.data.InconsistentDimensionException This <code>Exception</code> is thrown
  when the dimension of the object to be added does not fit the rest.
  @see DataObject
  @throws praktikum.framework.data.InconsistentDimensionException