improved the example