a program implements hex to decimal