Updated functions to clean up methods and to add an alternative way to implementing the sum_only_numbers method