Adde some static examples from Chapter 5.

Some examples with static keyword from Chapter 5 added.