window variable into class