Client side code for Flavor++,  in objective c