make example functional