added GraphicWindow and test pattern