Adding print_hex procedure