Add instance method to get table