WIP: Compiler and Selector

Initial version of a compiler.
can you turn these into static/instance methods?