lab4 for iOS course