A plea agreement has been reached in the case of Walter Cunningham, a Hartland man accused of taking students on a dangerous bus ride and leaving them on the side of the road.