Working with rational numbers