Refactor Stack_define() to take a name for the stack type