learning: add a base class with constructor and test it