There. It all compiles. It won't run correctly, but at least it compiles.