add a helper method: Value::takeName