CS 210 assignment for implementation of a fraction class