edited to add a firebase to word model