Alternator and its types