In this example we are using the coordinating conjunction "and" to join two different sentences, "we went to the swimming pool" with "(we) had lunch there".