made a abstract Table class

made a abstract Table class and eliminated uneeded classes