examples of class inheritance