Added overriden Equals and GetHashCode methods.