Completed p1 in Objective-C