working on fractions and trees