why it's geting null value this output are occurs mother son cat dog program car null father daughter