used factory service from angular

services are functions. they are like classes with their own methods.
Name of this specific service is called helperFactory. Most commonly
used in Angular