Make hexadecimal problem more idiomatic
Merge pull request #24 from JohnGB/hex