A functional anatomy of invertebrates