added example2.c