Example of class inheritance with abstract classes