Address Autofill

Address Autofill

Hi 
I'm having issues with the address autofill tutorial (https://zurl.co/rGXQ).  I have followed each step in the tutorial, but when i paste the code into a workflow/function, i'm getting the following error code:

 Improper code format Correct format : <return_type> <category>.<function_name>(<type> <arg1>, <type> <arg1>,...<type> <arg50>){ <code> }


zip = "Billing_Code";
info "data : " + data;
result = data.get("results");
mp = Map();
for each  rec in result
{
recmap = rec.toMap();
address_components = recmap.get("address_components").toJSONList();
for each  ele in address_components
{
eleMap = ele.toMap();
typeVal = eleMap.get("types");
if(typeVal.contains("locality"))
{
City = eleMap.get("short_name");
mp.put("City",City);
}
else if(typeVal.contains("administrative_area_level_1"))
{
State = eleMap.get("long_name");
mp.put("State",State);
}
else if(typeVal.contains("country"))
{
Country = eleMap.get("long_name");
mp.put("Country",Country);
}
}
}
updateResp = zoho.crm.updateRecord("Leads",leadId,mp);
info mp;
info updateResp;


* My Zip Code field API is billing_code.
*I have also omitted the API key for this post.

Can anyone help?