A few basic algebra functions