Hook up algorithm
Sample network