Balls OOP matlab