switched from using dicts for nearest and interest to making class objects for them