the graph of y=|x|-|x-1|+|x+2| is not like Figure 5.
If we choose x= 0 the value of y is 1. But in figure 5, for x = 0 value of y is 0.