added ADC snippet for homework 4