Small code example to better understand how inheritance can be used