Complete table class and its test. Modify bet interface.