sentences:  Shelley was first elected to Congress on November 7, 1876 from Alabama's 4th congressional district.He received 37.77% of the vote, but since the Republican vote was split between their nominee James T. Rapier (who won about 28%) and the incumbent Jeremiah Haralson, who ran as an independent and gained more than 33% of the vote, Shelley won the election.Shelly ran for reelection in 1878.