Tables and Docuemnt implements with some helper classes and more organized code