General Codes