First workable version

Implement a new Window and other functionalities