Use a descriptor class to create class properties
Move ndim and outdim to the base class Model