Remove extra closing parentheses in sample codes