Adding examples script for ch2.