added ex6.10 ~ 6.17