add beta version of good_neighbor.py