You are right, the reason for the examples are that I wanted to start from a practical situation I experienced, in place of making another discussion about the pro's and con's of dynamicly vs staticly typed languages (I found both to have their use, depending on the project but also on the people).