Starting to create the summary statistics functinos