fixed some bugs in MyService, more functionalities to add.