C# Unity 3D: LookAt.cs Help please

I’m having trouble trying to get this to work.

using UnityEngine;
using System.Collections;

public class LookAt : MonoBehaviour

 public Transform target;

void Update()

Getting this error when running:
LookAt.cs(6,7): error CS1031: Type expected

Any help would be appreciated.

You need to enclose the rest of your code inside the MonoBehaviour class…

public class LookAt : MonoBehaviour { //<--!!add curly-brace
    //whatever other code 
} //<--!!add curly-brace