Electric Generator Modeling and Automatic Generation Controller