Exceptions, model, code formatting