Added for loops

For loops have been implemented and tests for them have been made.