wrote simpleAdding function to sum from 1 to argument