demo factory

builds upon the ng-repeat demo