Implemented and tested the obsel's weighing algorithm