What was the Mesosaurus?

Mesosaurus is a 3 ft long extinct reptile from the early Permian period.