Added second line sensor, moved line sensor code into class