Implement where, all and matches