Add the structure and algorithm.