hash calc class