My homework is implemented with exceptions extended. I hope that is the final version