Class inheritance improved