add single inheritance tree patterns review