two scripts to do base conversion of numbers