Added Window class and test.