add semicolons, declare variables