trying to redo window class
window class redone