added validity checks to the slope model classes