lesson 6: added sync service and notifications