Simplifying fractions and rational expressions