this example should rather be a unit test... and not an example