finish exercise1.9~1.10