I know class inheritance like below can lead to issues like tight coupling and inflexible hierarchies. Not with this basic example but I created this just to show the prototype