Completed p3 in Objective-C