Added first draft of mesh class (not happy with the name).