adding hex class for converting hex strings