Create Window Class - Test

Could I make the code clearer by creating a class _ TO TEST