Encapsulated the windows class