Added toString, Equals and hashCode methods.