Added the algorithm pseudocode in the classes