trying to figure out why data-template works in class example but not hw example