Modified collection example to include imports and primitives.