finally fixed up this example
finished the stack examples