2 pitchers, slugger elected to Baseball Hall of Fame