Use a map to store activities

I finally found how to override equality, but using a map is just as
easy.