fixed hash code in the tutorial