Class GetValueFunction