Added code for example 4.5

Added code for example 4.5, putting all system variables to standard
output.