Made makeTable() method.