Adding base class for chapter 2.1, elementary sorting