Refactor code for trying to compile/run some code
Fix name error