Adding class file and quick tests.