~ whole example in one code snipplet