sentences:  Bates resigned in 1864, and was replaced by James Speed, the older brother of Lincoln's close friend, Joshua Fry Speed.Lincoln tasked Vice President-elect Hamlin with finding a someone from a New England state for the cabinet.Hamlin recommended Gideon Welles of Connecticut, a former Democrat who had served in the Navy Department under President James K. Polk.