For loop declaration works