Fixing containsRoot function
Adding more lines with a simpler model