Fixing inheritance example