With Window class