fraction class