variables example - moved length declaration to newline