Creating table class