Added alerts, variables, function and if elses