added functions to get the sum of the first n natural numbers and also the sum of the squares of the first n natural numbers