Working version, window