Solution: filtering lists