Fixed the scoping issue in hash example
Add explanation for deriving PartialEq