CODES AND RULES