Added filter function functionality to Collection