put service in its own class
Merge pull request #2 from salimane/pr_serviceclass

put service in its own class