added fromCents and ToCents methods