sample program for ios