added set and get value for storing the latest value in the thing