improving the example