Sample alg example