added more elegant solution to sum_mults and wrote a tester