Player movement

Hi, I’ve written this short script but I can only move forward and backwards. (Not left and right) Can someone please help me out?
Thanks !

using UnityEngine;
using System.Collections;

public class playermovement : MonoBehaviour {

public float moveSpeed;
public float RotationSpeed;
CharacterController cc;

// Use this for initialization
void Start () {

	cc = GetComponent<CharacterController> ();

}

// Update is called once per frame
void Update () {

	Vector3 forward = Input.GetAxis ("Vertical") * transform.TransformDirection (Vector3.forward) * moveSpeed;
	transform.TransformDirection(new Vector3(0, Input.GetAxis("Horizontal"),0));
	cc.Move(forward * Time.deltaTime);

	cc.SimpleMove(Physics.gravity);
		
}

}

I’m currently not at home, can’t debugg it and I’m using an old Version of IE. I’ll edit it when I’m back.
Here you go:

    void Update()
    {
        //Determine axis movement
        float vertical = Input.GetAxis("Vertical") * moveSpeed;
        float horizontal = Input.GetAxis("Horizontal") * moveSpeed;

        //Convert local direction into global
        Vector3 translation = this.transform.TransformDirection(horizontal, 0, vertical);

        //Translate Movement
        cc.Move(translation * Time.deltaTime);
        cc.SimpleMove(Physics.gravity);
    }

Feel free to ask questions

Edit: Originally posted code didn’t work after trying at home, however the now posted does.