Added some implementation for window class