add an algorithm Nov 12nd