Figure 2 vtbl for class stream in Listing 4