Added code for printing hexadecimal numbers