tennis example: initial version (thanks to Tobias and Keith)