Coding test in Objective C