understanding data inheritance