Inherited classes mapping