Tables functionality implemented