added matrix gist