How close is this to getting the camera to follow the player

im stumped i cant remember how to do this and want to know what i left out or where i went wrong.

using UnityEngine;
using System.Collections;

public class CameraController : MonoBehaviour {

public GameObject player;

private Vector3 offset;

// Use this for initialization

void Start () {

	offset = transform.position;

}


// Update is called once per frame

void LateUpdate () {

	transform.position = player.transform.position + offset;
}

}

Add the camera as a child to the player, and move the camera away from the player so they are “connected”.