I left a tutorial copy of my intersection value procedure at
if you want to play with it or break it.