slightly reworked the example