Added 4 codes for chapter 12

Examples are 12-3 to 12-6