Added Input and Window.
Added Input handling for closing the window.
Added method for cleaning up resources.