A example to understand how angular services work