chap 10 up method
exception handling
finished chap 10