http://stackoverflow...-sum-of-variables