Created new_window a WIP version of the window done in a more standard-compliant way