sample class with tests