add an algorithm and a class Dec 10th