learning about iOS Xcode Method