Added hashCode() method and removed null declaration.