The output seems correct if I use "-i 1" in the Program arguments. If I add a new person with "-c" etc etc, I get "2" as output, which is its index and what is supposed to happen, as far as I understood from the conditions. Don't new people get added to the end of the list automatically?