Indeed you should use `filter` and `map`.