cse21 inheritance draft -- need to write test cases