added contains method on collection.
added contains to collection.