Why did Elbridge Gerry of Massachusetts redraw the congressional districts in his state?

ATo get elected to the Senate
BTo give his party unfair political advantage
CTo give each major party fair representation
DTo get a president elected 6