Cognitive Network Source Code (CARMEN)