Updated the example picture, removed exit() call from DOMShape, and added more \LogicExceptions.