NSMutableArray *queue = [NSMutableArray new]; id firstItem = [queue objectAtIndex:0]; id lastItem = [queue objectAtIndex:queue.count-1];
id firstItem = [queue firstObject]; id lastItem = [queue lastObject];