Working on equation generation