Plotting the data.
Computing the cost J(θ).
Implementing gradient descent.