Finishing constructor
Implementing getHex test and code