Algorithms example.