c++ class for handling fraction