Using NSArray instead of assignment