Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents), and pennies (1 cent), write code to calculate the number of ways of representing n cents. (The result may be large, so you should return it modulo 1000000007)
Please complete the following python code precisely:
```python
class Solution:
    def waysToChange(self, n: int) -> int:
```