test for algorithm, part 2 of project