Some prokaryotic and eukaryotic cells have a cellular structure called a flagella. What is the purpose of the flagella?