basic hexNumber implementation with function stubs