public override bool Equals(Object obj) { if (obj is Variable) { return this.name.Equals(((Variable)obj).name); } return super.Equals(obj); }