created ruby script to sum salaries over time