Introduce a code builder
Use code memory
Fix source indenting