class which drow table from array