Added for loops
Fixed nested for loops
Moved ternary operator to Expr