Updated Hex example

Seems to produce the correct output.