trying to understand services and factories