finished coding inheritence validation segment