add matlab packages and class