Adding a hashcode helper class.