lean how to use Impulse Pattern