added ruby matrix