created a function to accumulate language totals and edited the main fuction to provide % by language