Using the Ball class