An interesting, but probably cumbersome way of doing this. Why not have a list for each donor containing the name and something representing every donation they've made? It would probably make your iterating a lot easier