Error in smartapp

preferences {
section(“If smoke is true:”) {
input “smoke16”, “capability.smokeDetector”, required: true, title: “Where?”

section(“Security alarm to siren:”) {
input “security16”, “capability.alarm”, required: true, title: “Where?”

def installed() {
log.debug “Installed with settings: ${settings}”



def updated() {
log.debug “Updated with settings: ${settings}”



def initialize() {
// TODO: subscribe to attributes, devices, locations, etc.
subscribe(smoke16, “smoke.detected”, smokeDetectedHandler)

// TODO: implement event handlers

def smokeDetectedHandler(evt) {
log.debug “smokeDetectedHandler called: $evt”

This is a code for a simple smartapp which setAlarmMode of Security Alarm to Siren if it detects smoke. But, I am having this error message.

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script_dth_a2071cfe6a8ee5429e09321e3bf672c5a24d2c232412db397589afd5ab2028a3: 781: unexpected token: def @ line 781, column 1.
def 1234() {

1 error

I do not know how can I understand this error. Where can I get this line 781? Can anyone help me, please? Thank you.