Added adc

putting in adc code