change compile example to code block