This exemple use switch structure