simple service based sample