update sample class