added alert, var and if for math test