Math and aggregate expressions

I wasn't really sure how it should work either so I stubbed something out to deal with later on.