added the SandpileModel class (not tested yet)