Finished Lab3 for iOS