simple subsumption architecture with C++