Using spaced repetition for learning