Adde some examples from Chapter 4.

Added a switch on strings example from Chapter 3, as well as some other
examples from Chapter 4, such as pass-by reference, method invocation
using named parameters, etc.