example of finding neighbors for the map class