inheritance notes for lec6