finishing the ketchup script and adding charts