add inheriting class samples