Final homework #2 correct error handling output