making first table a function object