added cleanup step when a program terminates.  Added initial stub classes for Stack related functionality