examples with collectors