fixed example
better structure