functional examples