changing GetAll method to be used only on the inherited classes.