exercises in C / Objective-C