Classses with inheritance working as expected.