Add simplify function for rational answers