Port transect sample class to version 2