example for simple class inheritance