https://www.kirupa.com/hodgepodge/counting_hexadecimal.htm