Attempt for suporting base classes and inheritance in Matlab