make example more easy to understand with typedef