the bin2dec we went over in class...