restructing classes with interface for sensor, not compete