working commit - class inheritance