trying out an algorithm