The node you are looking for is at Turning the model into a subroutine.