A basketball player slam dunks the ball and holds onto the rim .