second solution with List.filter