Made general SensorDomain class and Statistics class