First iteration of my implementation of algorithm.txt