Doing math with numbers in a list