implemented tables, figures and referencing them.