inheritance sample