added ex3.34~3.40