add ex16
add some comments
eliminate repetition
comment out the unnecessary target.truncate()