simple window creation code written and run well.