Objactive C - Filter array with pradicare, dont understand the format : So i have an NMMutableArray wich I try to filter using searchBar with no success, Insted of posting all my code I created a project just to understand how it works and evrything I find online didnt help me understand this fully

here is my code:


          - (void)viewDidLoad {
    [super viewDidLoad];

    NSMutableArray<Model*>* firstArry = [[NSMutableArray alloc] init];
    NSArray<Model*>* secondArry = [[NSMutableArray alloc] init];

    
    Model* p1 = [[Model alloc] init];
    p1.name = @"bob";
    p1.lastName = @"bdas";
    
    [firstArry addObject:p1];
    
    Model* p2 = [[Model alloc] init];
    p2.name = @"juny";
    p2.lastName = @"his";
    
    [firstArry addObject:p2];
    
    Model* p3 = [[Model alloc] init];
    p3.name = @"junay";
    p3.lastName = @"firs";
    
    [firstArry addObject:p3];
    
    Model* p4 = [[Model alloc] init];
    p4.name = @"bobov";
    p4.lastName = @"daskal";
    
    [firstArry addObject:p4];
    
    Model* p5 = [[Model alloc] init];
    p5.name = @"dima";
    p5.lastName = @"bonder";
    
    [firstArry addObject:p5];
    
    for (Model* name in firstArry){
        NSLog(@"%@",name.name);
    }
    
    NSString* filterWord = @"bo";
    
    NSPredicate* predicate = [NSPredicate predicateWithFormat:@"keywords.name CONTAINS[cd] %@",filterWord];
    secondArry = [firstArry filteredArrayUsingPredicate:predicate];
    
    
    if(secondArry.count > 0){
    for (Model* name in firstArry){
        NSLog(@"%@",name.name);
    }
    } else {
        NSLog(@"second arry is empty");
    }
    
}



I want to Filter the firstArry with the given filterWord and get a new array with the object wich they name property contains it, how to do it and how dose it work ?
