Massive stars in subparsec rings around galactic centres