Code now compiles.

Still not tested, still doesn't work.