Learning how repos work