v2 of sample codes for iPhone development