A simple mesh class