https://tornado.pythonprogramminghelp.com/how-to-use-row-statistics/