With ball class, first version