Describe the structure of a prokaryotic flagellum and the function of each of its main components.
A prokaryotic flagellum consists of three main parts: the filament (made of flagellin, responsible for movement), the hook (a curved protein that connects the filament to the basal body), and the basal body (a structure embedded in the cell envelope that anchors the flagellum and acts as a motor).