debugging task 3: values lifespan issue