Add code for repository using store