fix bug in program
add new examples