started implementation of get_value method