Add method pull/push to repository class