Codes of assignments