Create constructor in model classes.