created classes for M,V and C so that each can inherit from base classes.