implement table class and short code