added matrix demos