updated Ball class