second demo added : a gui application and word finish event