Update Agenda.cpp

Refactoring