Split variable and code
Add test example