Inheritance demo
Separate average in inheritance demo