Started to add inheritance for Algorithms