added support for model instance method declarations.