new example using with context manager