Modified adc code. renamed class to adc