Identify whether the following is a simple sentence or a compound sentence. Ted cooked the dinner and Janet ate it.