Figure 2: Filling the lookup table