hash class