Implemented a basic window