Add functionality to create window to window class and setting up application