Some modifications in example programs