Figure 6: Implementation of the getValue methods