Moved stack_init into constructor for stack