Updated Hex class