updated to use numbers from figure 3.3