Machine used for generating of electrical power