add code for binary to decimal conversion