Minor thing: What about calling this variable features? Instances seems a bit too generic to me.