Assignment #3 exceptions with errors