creating base numeral converter