Proper utilization of code-canvas