A group of teenage girls in a ballet class are doing their barre exercises.
Some teenage girls in ballet class work on the bar.
A group consists of "some", as opposed to "one" or "none".  To say that girls "work on the bar" is another way of saying that they are doing barre exercises.
(-x)
(-x)