homework 6 - exception-handling