created rationalnumbers class