Added an example from Flenegan with inheritance