added firstquad demo
Wrote the assign dsitance dict function.
Revamped this script to include distance assignment