2nd homework for iOS special course on CMC