adding charts and final code stuff