Adding Tree, Pattern classes.