How CODE works