Making makeTable() method.