implement remove_value and reverse list