Removed a print statement and consolodated an array into the mean