Add stack example from Chapter 3