Finally compiles.

But produces a blank window.