add an algorithm Nov 7th