runnable example modified