implemented object#is()
corrected coparator for rational numbers