create mesh class and add mesh functionality to all primitive shape class