matlab OO approach?