added together keys and values using inject