Fixed semicolon and global bugs in task2, again