improving readme with inheritance example