Transform the following algorithm description into a working python function.
Given a list of numbers, find the sum of the elements in the list.
def sum_list(nums_list):
    total = 0
    for num in nums_list:
        total += num
    return total