A class for rational numbers, developed using TDD