implemented service and repo
implemented service and repo