Object-oriented approach to the development of level-2 Mfile S-function