working collections example (only the main part, up to list, not sets)