Added Substitution (works for simple trees)