Simplifying and multiplying expressions