Fixing interface and class inheritance