Yet Another Matrix program