Add the structure for the algorithm