First of all, you need collision detection, so you know when the ball is touching the slope. To create the simulation, you also need an integrator to move things around and collision response to make them bounce.