Theoretical, compiling code
Also added encoder code as backup. It *should* work. Encoder code is in block comments,
separated by a newline.