I'm stubbing out the code for the character controller and I'm getting a bunch of error CS0116: A namespace can only contain types and namespace declarations.
I've checked it against the tutorial code and it appears to be the same. Does anyone know what could be causing the error CS0116?

This is my code:

using UnityEngine;
using System.Collections;

public class CharacterController2D : MonoBehaviour
{
private const float SkinWidth = .02f;
private const int TotalHorizontalRays = 8;
private const int TotalVerticalRays = 4;

private static readonly float SlopeLimittangant = Mathf.Tan (75f * Mathf.Deg2Rad);

public LayerMask PlatformMask;
public ControllerParameters2D DefaultParameters;

public ControllerState2D State { get; private set;}

public void Awake()
{
}

public void AddForce(Vector2 force)
{
}

public void SetForce(Vector2 force)
{
}

public void SetHorizontalForce(float x)
{
}

public void SetVerticalForce(float y)
{
}

public void Jump(
{
}

public void LateUpdate()
{
}

private void Move(Vector2 deltaMovement)
{
}

private void HandlePlatforms()
{
}

private void CalculateRayOrigins()
{
}

private void MoveHorizontally(ref Vector2 deltaMovement)
{
}

private void MoveVertically(ref Vector2 deltaMovement)
{
}

private void HandleVerticalSlope(ref Vector2 deltaMovement)
{
}

private void HorizontalSlope(ref Vector2 deltaMovement, float angle, bool isGoingRight)
{
}

public void OnTriggerEnter2D(Collider2D other)
{
}

public void OnTriggerExit2D(Collider2D other)
{
}
}