adding binary conversion code shown in class 1/30/2013