First implementation of setValue and getItems