created substation model class