Use class inheritance