inheritance implemented part 2