Classes and interface to do the different kinds of cross sections.