working in matlab OOP