Creating a Mesh class