Text this: Design of electrical machines