adding the conversion from binary string to decimal integer