began preliminary algorithm implementation