#update - fixes syntax and semantics, Swift-fy code, removes unnecessary semicolons