Create rationalNum.php

class for rational numbers.