demo compiled in code