Added Measurability dimension and changed Main class respect to this.