first commit for figure 3.5