Refactor: Create a directory for examples
Add an example (and a test case) with inheritance