Hashcode bug

Hashcode was deleted by mistake, hence the code is been put back.