The compiler is telling you what's wrong there and it's highlighted. The "OnCollisionEnter2D" doesn't have a method body enclosed with "{ }" braces (it only has a semi-colon). The same as your "Update" function. This isn't 2D related, it's basic C# syntax.