Revise laserSensor.py to be a class