Please use code tags . It’s easier to spot errors when the code is formatted correctly.
Anyway, the errors are pretty clear about what’s going on. Start to work from top to bottom. If you fix the first one, the others may already disappear because it’s mainly complaining about syntax errors.
If you format the code, I’ll take a look at it if you can’t figure it out.