WIP: first draft compiles