Added a Factory to instantiate Windows.