added Ball class