1. A method comprising: using a computer having a graphical user interface; defining at least one function within a graphical representation of a finite state machine; representing the at least one function graphically; calling the graphical function in a modeling system.