created first version of table-creating logic...