changed NotImplemented -> NotImplementedError (aka type -> exception)