how does a code