first working version of the table view datasource