Embedding prefabricated windings in the machine