Implementing non-leaf methods/functions using the program stack