ex4 fix Ex_10 //better function for conversion to binary added