fixed the todo of Figure 2