add matrix demo