added example for "encapsulate collection"