Created window class and set functions