Refactor data to tmmFactory. Install lodash