Initial attempt

Still needs to handle expressions with multiple factors/terms; e.g.
1+2+3 or 2*3*4. Handles 1+2, 2*4, 1+2*3, etc.