How is the chorale melody used in the opening movement of Bach’s

Ein Feste Burg ist Unser Gott?