add Window class
update init()
add Window constructor