a class and an algorithm, Oct 9th