added method to count thru loop and calculate average
added method to calc and and method to print.