remove system("pause") term in examples