New: hw #3 and exceptions