Getting table and its lines