Replaced BasicWindow with SimpleWindow and changed Window implementaion
to use a runLoop() method.