setting up model inheritance