Codes from OCPJP preparation