Basic class with simple inheritance and property