Added code for first four examples of ch11
Added examples 5 and 6 for ch11