how to create tables and graphs