error CS0103: The name 'velocity' does not exist in the current context

If you’re going to use the code from a tutorial you need to make sure you enter everything exactly as it is shown in the tutorial. All of your errors are solely the result of missing symbols and words. Also if you’re going to paste code use code tags or it’s just an unreadable mess.