changing array usages to IEnumerable/IList. Adding programmatic methods to Stubby class