added example2.c
 modified example2