Abundance analysis of barium stars