Add synchronization to Repository
Remove main method used for testing