removing import of defaultdict from collections. Was exploring using a list dictionary for efficiency. May still do this at a later point, but getting the agen up and running is more important