Which of the following structures, found external to the bacterial cell wall, are involved in bacterial attachment to cell surfaces?
A. Capsule
B. Flagella
C. Pili
D. Mesosomes