Text this: Object Oriented Modeling of Rotating Electrical Machines