key-value: the first version of the getValue. (work in progress...)