added A GenericCode object to be used for external codes.