Add a stack diagram, courtesy of glasgall